<?php
/* [DoYouHaoBaby!] (C)Dianniu From 2010.
   this($)*/

!defined('DYHB_PATH') && exit;

class TemplateGtkGladeWidgetCompiler_GtkRadioButton extends TemplateGtkGladeWidgetCompiler_GtkToggleButton{

	protected function compileCreateWidget_(TemplateGtkGladeWidget $oObject){
		$sCompiled=TemplateGtkGladeWidgetCompiler_GtkToggleButton::compileCreateWidget_($oObject);
		$sVariableName='$'.TemplateGtkGlade::getWidgetVariableName($oObject);
		if($sGroup=$oObject->getProperty('group')){$sCompiled.="\t\t{$sVariableName}->set_group(\$this->getWidget('{$sGroup}',\$arrObjectForSignal);";}// 分组
		return $sCompiled;
	}

	static public function regToProcessorManager(ITemplateObjProcessorManager $oManager){
		$oManager->regProcessor(str_replace('TemplateGtkGladeWidgetCompiler_','',__CLASS__),__CLASS__);
	}

}
